class Human:
    def setname(self,name):
        self.name=name
        print('我叫%s'%self.name)

    def eat(self):
        print('我吃了')
        print('我包了')

    def sleep(self):
        print('我累了')
        print('我睡了')
#self 不是普通变量，同样的和形参有类似占位作用，它是一种对象的绑定，同时也是指向对象本身
a=Human()
a.setname('福旺')
a.eat()
a.sleep()

class Company():
    def promote(self):
        pass

    def after_promotion(self):
        pass
    def gongguan(self):
        pass
ali=Company()
huawei=Company()
Tencent=Company()

##################

